﻿create or replace function posTerminalModelListLoad(out refcursor, inout xml)
as
$$
declare
	 ref alias for $1;
	 xmlQueryData	alias for $2;
begin

	open ref for select posTerminalModelToXml(poel.idposterminalmodel, poel.nameposterminalmodel) from posterminalmodel poel;

	return;

end;
$$ language plpgsql stable;